﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;

namespace AnyOffice.general.netmeeting.attend
{
    public partial class index : ModulePage
    {
       
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["action"] != null)
            {
                new NetMeetingUserDao().Exit(base.Conn, base.User.Identity.Name);
            }
            NetMeetingSessionsDao dao2 = new NetMeetingSessionsDao();
            DataView defaultView = dao2.SelectAll(base.Conn).DefaultView;
            string str = "(State=1 AND BeginTime < DateTimeNow) AND (',' + ToId + ',' LIKE '%," + base.User.Identity.Name + ",%')";
            defaultView.RowFilter = str;
            if (defaultView.Count > 0)
            {
                this.rptChatroom.DataSource = defaultView;
                this.rptChatroom.DataBind();
            }
            else
            {
                this.litMessage.Text = base.ShowMessage("暂无进行中的网络会议");
            }
        }
 

    }
}
